using System;
namespace CommandLib.Base
{
	public class Singleton<T> where T : new()
	{
		private static T instance = default(T);
		public static T Instance
		{
			get
			{
				if (null == Singleton<T>.instance)
				{
					T t = default(T);
					T arg_35_0;
					if (t != null)
					{
						t = default(T);
						arg_35_0 = t;
					}
					else
					{
						arg_35_0 = Activator.CreateInstance<T>();
					}
					Singleton<T>.instance = arg_35_0;
				}
				return Singleton<T>.instance;
			}
		}
	}
}
